/* Copyright 2001,2002,2003 NAH6
 * All Rights Reserved
 *
 * Parts Copyright DoD, Parts Copyright Starium
 *
 */
int submult[256][4] = {
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    0,   -1,   -1,   -1,
    1,    0,   -1,   -1,
    1,    0,   -1,   -1,
    1,    1,   -1,   -1,
    1,    2,   -1,   -1,
    1,    2,   -1,   -1,
    1,    3,   -1,   -1,
    1,    3,   -1,   -1,
    1,    4,   -1,   -1,
    1,    4,   -1,   -1,
    1,    5,   -1,   -1,
    1,    5,   -1,   -1,
    1,    6,   -1,   -1,
    1,    6,   -1,   -1,
    1,    7,   -1,   -1,
    1,    7,   -1,   -1,
    1,    8,   -1,   -1,
    1,    8,   -1,   -1,
    1,    9,   -1,   -1,
    1,    9,   -1,   -1,
    1,   10,   -1,   -1,
    1,   10,   -1,   -1,
    1,   11,   -1,   -1,
    1,   11,   -1,   -1,
    1,   12,   -1,   -1,
    1,   12,   -1,   -1,
    1,   13,   -1,   -1,
    1,   13,   -1,   -1,
    1,   14,   -1,   -1,
    1,   14,   -1,   -1,
    1,   15,   -1,   -1,
    1,   15,   -1,   -1,
    1,   16,   -1,   -1,
    1,   16,   -1,   -1,
    1,   17,   -1,   -1,
    1,   17,   -1,   -1,
    1,   18,   -1,   -1,
    1,   18,   -1,   -1,
    1,   19,   -1,   -1,
    1,   19,   -1,   -1,
    1,   20,   -1,   -1,
    1,   21,   -1,   -1,
    1,   21,   -1,   -1,
    1,   22,   -1,   -1,
    1,   23,   -1,   -1,
    1,   23,   -1,   -1,
    1,   24,   -1,   -1,
    1,   25,   -1,   -1,
    1,   25,   -1,   -1,
    1,   26,   -1,   -1,
    1,   27,   -1,   -1,
    1,   27,   -1,   -1,
    1,   28,   -1,   -1,
    1,   29,   -1,   -1,
    1,   29,   -1,   -1,
    1,   30,   -1,   -1,
    1,   31,   -1,   -1,
    1,   31,   -1,   -1,
    1,   32,   -1,   -1,
    1,   33,   -1,   -1,
    1,   33,   -1,   -1,
    2,   34,    0,   -1,
    2,   35,    0,   -1,
    2,   35,    1,   -1,
    2,   36,    1,   -1,
    2,   37,    1,   -1,
    2,   37,    2,   -1,
    2,   38,    2,   -1,
    2,   39,    2,   -1,
    2,   39,    3,   -1,
    2,   40,    3,   -1,
    2,   41,    3,   -1,
    2,   41,    4,   -1,
    2,   42,    4,   -1,
    2,   43,    4,   -1,
    2,   43,    5,   -1,
    2,   44,    5,   -1,
    2,   45,    5,   -1,
    2,   45,    6,   -1,
    2,   46,    6,   -1,
    2,   47,    6,   -1,
    2,   47,    7,   -1,
    2,   48,    7,   -1,
    2,   49,    7,   -1,
    2,   49,    8,   -1,
    2,   50,    8,   -1,
    2,   51,    8,   -1,
    2,   51,    9,   -1,
    2,   52,    9,   -1,
    2,   52,    9,   -1,
    2,   53,   10,   -1,
    2,   53,   10,   -1,
    2,   54,   10,   -1,
    2,   54,   11,   -1,
    2,   55,   11,   -1,
    2,   55,   11,   -1,
    2,   56,   12,   -1,
    2,   56,   12,   -1,
    2,   57,   12,   -1,
    2,   57,   13,   -1,
    2,   58,   13,   -1,
    2,   58,   13,   -1,
    2,   59,   14,   -1,
    2,   59,   14,   -1,
    2,   60,   14,   -1,
    2,   60,   15,   -1,
    2,   61,   15,   -1,
    2,   61,   15,   -1,
    2,   62,   16,   -1,
    2,   62,   16,   -1,
    2,   63,   16,   -1,
    2,   63,   17,   -1,
    2,   64,   17,   -1,
    2,   64,   17,   -1,
    2,   65,   18,   -1,
    2,   65,   18,   -1,
    2,   66,   18,   -1,
    2,   66,   19,   -1,
    2,   67,   19,   -1,
    2,   67,   20,   -1,
    2,   68,   20,   -1,
    3,   68,   21,    0,
    3,   70,   22,    1,
    3,   71,   23,    2,
    3,   73,   25,    2,
    3,   74,   26,    3,
    3,   75,   27,    4,
    3,   77,   29,    5,
    3,   78,   30,    5,
    3,   80,   31,    6,
    3,   81,   33,    7,
    3,   83,   34,    8,
    3,   84,   35,    8,
    3,   86,   37,    9,
    3,   87,   38,   10,
    3,   89,   39,   11,
    3,   90,   41,   11,
    3,   92,   42,   12,
    3,   93,   43,   13,
    3,   95,   45,   14,
    3,   96,   46,   14,
    3,   98,   47,   15,
    3,   99,   49,   16,
    3,  101,   50,   17,
    3,  102,   51,   17,
    3,  104,   52,   18,
    3,  105,   53,   19,
    3,  107,   54,   20,
    3,  108,   55,   21,
    3,  110,   56,   22,
    3,  111,   57,   23,
    3,  113,   58,   24,
    3,  114,   59,   25,
    3,  116,   60,   26,
    3,  117,   61,   27,
    3,  119,   62,   28,
    3,  120,   63,   29,
    3,  122,   64,   30,
    3,  123,   65,   31,
    3,  125,   66,   32,
    3,  126,   67,   33,
    3,  128,   68,   34,
    3,  129,   69,   35,
    3,  131,   70,   36,
    3,  132,   71,   37,
    3,  134,   72,   38,
    3,  135,   73,   39,
    3,  137,   74,   40,
    3,  138,   75,   41,
    3,  140,   76,   42,
    3,  141,   77,   43,
    3,  143,   78,   44,
    3,  144,   79,   45,
    3,  146,   80,   46,
    3,  147,   81,   47,
    3,  149,   82,   48,
    3,  150,   83,   49,
    3,  152,   84,   50,
    3,  153,   85,   51,
    3,  155,   86,   52,
    3,  156,   87,   52,
    3,  158,   88,   53,
    3,  159,   89,   54,
    3,  161,   90,   55,
    3,  162,   91,   55,
    3,  164,   92,   56,
    3,  165,   93,   57,
    3,  167,   94,   58,
    3,  168,   95,   58
};
